package lazy.multithreading;

/**
 * @Description
 * @Author zhousl
 * @Date 2023/4/2 23:15
 */
public class ThreadLazySingletonApplication {

    public static void main(String[] args){
        new Thread(()->{
            ThreadLazySingleton singleton = ThreadLazySingleton.getInstance();
            System.out.println(singleton);
        }).start();

        new Thread(()->{
            ThreadLazySingleton threadLazySingleton = ThreadLazySingleton.getInstance();
            System.out.println(threadLazySingleton);
        }).start();
    }
}
